Repository navigation
serve: spill prompt states to SSD by default where the family keeps an exact image - #6436
joshuaswarren wants to merge 1 commit into
Conversation
…n exact image (ashhart#3619) The resolved family's own refusal surface is the capability check: spill_default.shape probes refusals.family with and without the disk flags, so serving engages the conversation store only where the flags are accepted as named. A family that refuses them keeps RAM-only sessions silently, while an explicit --learn/--learn-conversations/ --spill-gib keeps its refusal unchanged. The default stays off under --confidential, --prompt-cache-gib 0, and the TF_KV_SHARE/TF_GLM_REQUEST_STARTS development variables; handover and imprint routes still require the explicit flags. Fixes ashhart#3619 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Synthena Initial Review — Needs maintainer review (
|
|
Thanks @joshuaswarren. The saved-image paths copy existing bytes without adding a precision conversion, and the four default opt-outs are present. We’ll handle the remaining fixes: keep automatic disk failures in RAM with a clear warning, preserve explicitly named disk controls, and keep Qwen’s shared-KV mode serving. We’ll also add a disk guard and its regression test. No further revision is needed from you for those fixes. Before landing, we still need exact image and token comparisons across eviction and restart, plus cold and reused-request timings to confirm there is no slowdown.
|
What this changes
Agent serving (
tensorfold serve,openandfollowalike) turns the on-disk conversation store on without a flag where the resolved family keeps an exact image:spill_default.shapeprobes the family's ownrefusals.familywith and without the disk flags, so a family that accepts them serves as if--learn-conversations(and--spill-gib, where accepted) were given, and a family that refuses them keeps RAM-only sessions silently. Naming--learn,--learn-conversations,--prompt-cache-diskor--spill-gibkeeps the explicit semantics, including each family's refusal. The default stays off under--confidential,--prompt-cache-gib 0, and whileTF_KV_SHAREorTF_GLM_REQUEST_STARTSis set; handover and imprint routes still require the explicit flags.atc overlap --json: workingTree conflicts=0 (clean=3) on 96ec4ca, pushed 2026-12-03 UTC; earlier runs showed transientpullFilesUnavailablefile-level flags ondocs/api.md/root.zigagainst server: forget one conversation's kept states (POST /v1/imprint/forget) #3226/GLM on CUDA: the prompt history fetch under the latent split (TF_GLM_KV_SPLIT, #1431 part 3; stacked on #2935) #2937/GLM on CUDA: kept states, carries and prompt twins under the latent split (TF_GLM_KV_SPLIT, #1431 part 4; stacked on #2937) #2938/dsv41 metal: TF_DSV41_CHUNK_SOLO solo prompt chunk widening (stacked on #2950) #3671/cli: tensorfold mcp, a Model Context Protocol server on stdio for this machine's models and local servers #3549/server: tensorfold serve --router answers for several models at one address, each a serve child loaded on demand #3540 — resolved by keeping the diff toengines.zig, two new files, a test-import line inengine_refusal_test.zig, anddocs/run-guide.md. The fullerdocs/api.mdsection paragraph follows after the GLM disk train (GLM on CUDA: owner-only latent rows and owner-computed attention (TF_GLM_KV_SPLIT, #1431 part 2; stacked on #2415) #2935-38) lands, since it rewrites that section.Checks on this head
python3 tools/zig/lean_check.py, on the base and on this head: 88 base / 88 head, 0 newzig build test-server-cputest binary, all 4 shards standalone (--tf-shard=N/4): 581+583+583+585 = 2332 passed, 0 failed, 25 skipped (env-pinned). The zig-build wrapper's parallel shard runs die without a named failure on this host — a pre-existing flake; each shard passes standalone.zig build check-native-cuda-host: compiles the real CUDA backend againstnative.refusals/native.registry.python3 tools/zig/env_names.py: 842 variables, 0 problems.Receipt
--learn-conversations/--spill-gibflag semantics and store.engines.releasedfeedsopenandfollowon every backend; exercised through the host test suite (CPU fake engine) and the CUDA-host compile. Metal/CUDA inference paths not run here.tools/bench_concurrent.py --alone --serialortoken_shaagainst"draft": false: n/a — no tokens change; the store's own checks already guarantee read-back equality, and a family whose image is inexact keeps refusing the flags so the default never engages for it.Checklist